package com.smartpro.mis.modular.business.controller;

import com.smartpro.mis.core.base.controller.BaseController;
import com.smartpro.mis.core.log.LogObjectHolder;
import com.smartpro.mis.modular.business.service.IDeviceService;
import com.smartpro.mis.modular.system.model.Device;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Date;

/**
 * 设备管理控制器
 *
 * @author mengiy
 * @Date 2018-03-22 11:25:46
 */
@Controller
@RequestMapping("/index")
public class MainController extends BaseController {

    private String PREFIX = "/business/device/";

    @Autowired
    private IDeviceService deviceService;

    /**
     * 跳转到设备管理首页
     */
    @RequestMapping("/showDemo")
    public String index() {
        return PREFIX + "deviceIndex.html";
    }

}
